package com.ck.ips.model.vo.sys;

import com.ck.common.model.Sysconfig;
import com.ck.core.constant.SysConfigNameEnum;

import java.io.Serializable;

/**
* @Description: 系统配置VO
* @Author: hf
* @Date:    2019/4/29 17:01
* @Version: 1.0
*/
public class SysConfigVO extends Sysconfig implements Serializable {

	private String accept;

	private String group;

	public String getGroup() {
		return group;
	}

	public void setGroup(String group) {
		this.group = group;
	}

	public String  getAccept(){
		if ( super.getType() != null ) {
			try {
				return SysConfigNameEnum.getByType(super.getType()).getAccept();
			}catch (Exception e) {
				// DO NOTHING
			}
		}
		return "";
	}

	public void setAccept(String accept) {
		this.accept = accept;
	}
}
